package day03;

public class IfElseDemo {
    public static void main(String[] args) {
        //成绩
        int score=225;
        if(score>=0&&score<=100){
            System.out.println("成绩合法");
        }else{
            System.out.println("成绩不合法！！！");
        }
        System.out.println("程序继续执行......");

        //商场打折
        double price=300.0;
        if(price>=500){
            price*=0.8;
        }else{
            price*=0.7;
        }
        System.out.println("最终金额为："+price);

        //奇偶数计算
        int num=333;
        int a=num%2;
        if(a==0){
            System.out.println(num+"为偶数");
        }else{
            System.out.println(num+"为奇数");
        }



    }
}
